﻿@model Ornament.MemberShip.UserGroup
@{
    ViewBag.Title = "创建用户组";
    Layout = "~/Views/Shared/App.cshtml";
    Html.EnableClientValidation();
}
<script src="@Url.Content("~/Scripts/Lib/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Lib/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm())
{    
    @Html.ValidationSummary(true)
    <p>
        <input type="submit" value="创建" id="save" />
        <input type="button" value="取消" onclick="location='index'" id="cancel" />
    </p>
    <fieldset class="cssform">
        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Remark)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Remark)
            @Html.ValidationMessageFor(model => model.Remark)
        </div>
    </fieldset>
}
@section PageTitle{
创建用户组
}
@section Header{
    <script type="text/javascript">
        $(document).ready(function () {
            $("#save,#cancel").button();
        });
    </script>
}
